//
//  HQNaviDriveRouteOptionsModel.m
//  o_amap
//
//  Created by Q神 on 2021/4/20.
//

#import "HQNaviDriveRouteOptionsModel.h"

@implementation HQNaviDriveRouteOptionsModel

- (void)calculateDriveRouteWithNaviDriveManager:(AMapNaviDriveManager *)manager {
    if (self.startLat > 0 && self.startLon > 0 && self.endLat > 0 && self.endLon > 0) {
        /// 起点信息
        AMapNaviPOIInfo *startInfo = [[AMapNaviPOIInfo alloc] init];
        startInfo.locPoint = [AMapNaviPoint locationWithLatitude:self.startLat longitude:self.startLon];
    //    startInfo.startAngle = 270;
        /// 终点信息
        AMapNaviPOIInfo *endInfo = [[AMapNaviPOIInfo alloc] init];
        endInfo.locPoint = [AMapNaviPoint locationWithLatitude:self.endLat longitude:self.endLon];
    //    endInfo.mid = @"B000A8UIN8";
        /// 经纬度算路
        [manager calculateDriveRouteWithStartPOIInfo:startInfo endPOIInfo:endInfo wayPOIInfos:nil drivingStrategy:self.naviStrategy];
    }
}

@end
